package net.maxwoods.springcloud;/**
 * @description:
 * @authoer: Max Woods
 * @create:2018/7/7 15:56
 **/


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *@auther: Max Woods
 *@create:2018/7/7 15:56
 **/
@Configuration
@EnableEurekaServer
@EnableAutoConfiguration
@RestController
public class EurkaServer {
    @RequestMapping("/")
    public String home() {
        return "Hello World";
    }

    public static void main(String[] args) {
        SpringApplication.run(EurkaServer.class, args);
    }
}
